package com.codeZ.FactoryPattern.abstractFactory.factory.impl;

import com.codeZ.FactoryPattern.abstractFactory.factory.AppliancesFactory;
import com.codeZ.FactoryPattern.abstractFactory.product.AbstractFreezer;
import com.codeZ.FactoryPattern.abstractFactory.product.AbstractTV;
import com.codeZ.FactoryPattern.abstractFactory.product.impl.HairFreezerImpl;
import com.codeZ.FactoryPattern.abstractFactory.product.impl.HairTVImpl;

/**
 * 海尔工厂
 * @author codeZhang
 * @Date 2024/8/1 17:59
 */
public class HairFactory implements AppliancesFactory {
    @Override
    public AbstractTV createTV() {
        return new HairTVImpl();
    }

    @Override
    public AbstractFreezer createFreezer() {
        return new HairFreezerImpl();
    }
}
